#include "idc.h"

class XD_HaloDialog {
	idd = -1;
	movingEnable = true;
	onLoad="uiNamespace setVariable ['D_HALO_DIALOG', _this select 0]";
	objects[] = {};
	class controlsBackground {
		class XD_BackGround : XC_RscText {
			idc = -1;
			type = 0;
			style = 48;
			x = 0;
			y = 0;
			w = 1.93;
			h = 1.3;
			XCTextBlack;
			colorBackground[] = {0,0,0,0};
			text = "\ca\ui\data\ui_mainmenu_background_ca.paa";
			font = "Zeppelin32";
			sizeEx = 0.032;
		};
	};
	class controls {
		class XD_MainCaption : XC_RscText {
			x = 0.12;
			y = 0.05;
			w = 0.50;
			h = 0.1;
			sizeEx = 0.035;
			colorBackground[] = {1, 1, 1, 0};
			XCTextBI;
			text = $STR_DIAG_HALO_TITLE;
		};
		class XD_CancelButton: XD_ButtonBase {
			idc = -1;
			text = $STR_DIAG_AIRTAXI_CANCEL; 
			action = "closeDialog 0";
			default = true;
			x = 0.68;
			y = 0.945;
		};
		class XD_Taxi3: XD_ButtonBase {
			idc = 21001;
			text = $STR_DIAG_HALO_REQUEST;
			action = "closeDialog 0; if ((D_HALO_MAP_POSITION distance [0,0,0]) > 100) then{['d_halo_request', [D_HALO_MAP_POSITION]] call XNetCallEvent;};";
			x = 0.68;
			y = 0.24;
		};
		class XD_UnitsListbox : SXRscListBox {
			idc = 21002;
			x = 0.68;
			y = 0.32;
			w = 0.25;
			h = 0.40;
			sizeEx = 0.023;
			rowHeight = 0.02;
			borderSize = 1;
		};
		class XD_TaxiText : XC_RscText {
			x = 0.68;
			y = 0.16;
			w = 0.3;
			h = 0.1;
			colorBackground[] = {1, 1, 1, 0};
			XCTextBI;
			sizeEx = 0.03;
			text = $STR_DIAG_HALO_EXPLANATION;
		};
		class Dom2 : XC_RscText {
			x = 0.12;
			y = 0.945;
			w = 0.25;
			h = 0.1;
			sizeEx = 0.035;
			colorBackground[] = {1, 1, 1, 0};
			XCMainCapt;
			text = "Domination! 2";
		};
		class XD_Map : XD_RscMapControl {
			idc = 21003;
			colorBackground[] = {0.9, 0.9, 0.9, 0.9};
			x = 0.12;
			y = 0.2;
			w = 0.52;
			h = 0.64;
			showCountourInterval = false;
		};
	};
};
